package s08.ch10.ex1;

import java.math.BigDecimal;

public class Inheritance {

	public static void main(String[] args) {

		Student s1 = new Student("marek", "kul", "ulica", 1, "school");
		Teacher t1 = new Teacher("ala", "bala", "ulica2", new BigDecimal(1000));

		System.out.println(s1.getName() + " " + s1.getSurname() + " "
				+ s1.getAddress());
		System.out.println(t1.getName() + " " + t1.getSurname() + " "
				+ t1.getAddress());
	}

}
